package com.hmy.infrastructure.service.corpsearch;

import com.hmy.infrastructure.api.bo.request.corpsearch.CorpDetailSearchRequest;
import com.hmy.infrastructure.api.bo.request.corpsearch.CorpSearchRequest;
import com.hmy.infrastructure.api.bo.response.corpsearch.CorpDetailClientResponse;
import com.hmy.infrastructure.api.bo.response.corpsearch.CorpSearchResponse;

public interface ICorpSearchService {

    /**
     * 通过企业名称模糊查询
     *
     * @param corpSearchRequest 企业信息请求
     * @return 返回匹配的企业的信息
     * @throws Exception
     */
    CorpSearchResponse nameSearch(CorpSearchRequest corpSearchRequest) throws Exception;

    /**
     * 通过企业全称查询企业工商详细信息
     *
     * @param detailSearchRequest 企业详细信息学查询参数
     * @return 返回查询到的企业工商详细信息
     * @throws Exception
     */
    CorpDetailClientResponse detailSearch(CorpDetailSearchRequest detailSearchRequest) throws Exception;
}
